<template>
	<view class="page">
		<u-album :urls="urls1" keyName="src2"></u-album>
		<image :src="urls" mode="" style="width: 200rpx;height: 200rpx;"></image>
	</view>
</template>

<script>
	const index = require('@/api/personal/index.js')
	export default {
		data() {
			return {
				urls: '',
				urls1: [{
					src2: '',
				}],
			}
		},
		onLoad() {
			this.Distribution()
		},
		methods: {
			async Distribution() {
				let postData = {
					open_id: uni.getStorageSync('openid'),
					app_id: this.$https.weixinAppId,
				}
				let res = await index.Distribution(postData)
				if (res.code === 1) {
					console.log(res.data.path)
					this.urls = res.data.path
					// this.urls1[0].src2 = res.data.path

				}
			},
		}
	}
</script>

<style lang="scss">
	.page{
		width: 100%;
		height: 100vh;
		background-color: #fff;
	}
</style>